package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 项目支付表
 *
 * @author code-generate
 * @date 2022-11-02
 */
@Data
@DbTable(tableName = "t_proj_payment")
public class ProjPayment extends BaseEntity {

    /**
     * 支付ID
     */
    @DbTableField(columnName = "c_payment_id", dbType = DbTypeEnum.VARCHAR)
    public String paymentId;

    /**
     * 请款ID
     */
    @DbTableField(columnName = "c_req_funds_id", dbType = DbTypeEnum.VARCHAR)
    public String reqFundsId;

    /**
     * 项目ID
     */
    @DbTableField(columnName = "c_proj_id", dbType = DbTypeEnum.VARCHAR)
    public String projId;

    /**
     * 合同ID
     */
    @DbTableField(columnName = "c_contract_id", dbType = DbTypeEnum.VARCHAR)
    public String contractId;

    /**
     * 所属年度
     */
    @DbTableField(columnName = "c_year", dbType = DbTypeEnum.CHAR)
    public String year;

    /**
     * 第几次支付
     */
    @DbTableField(columnName = "c_payment_count", dbType = DbTypeEnum.INTEGER)
    public Integer paymentCount;

    /**
     * 收款单位ID
     */
    @DbTableField(columnName = "c_payment_company_id", dbType = DbTypeEnum.VARCHAR)
    public String paymentCompanyId;

    /**
     * 收款单位名称
     */
    @DbTableField(columnName = "c_payment_company_name", dbType = DbTypeEnum.VARCHAR)
    public String paymentCompanyName;

    /**
     * 收款单位账号
     */
    @DbTableField(columnName = "c_payment_company_account", dbType = DbTypeEnum.VARCHAR)
    public String paymentCompanyAccount;

    /**
     * 支付时间
     */
    @DbTableField(columnName = "c_payment_time", dbType = DbTypeEnum.TIMESTAMP)
    public LocalDateTime paymentTime;

    /**
     * 支付金额
     */
    @DbTableField(columnName = "c_payment_money", dbType = DbTypeEnum.DECIMAL)
    public BigDecimal paymentMoney;

    /**
     * 备注
     */
    @DbTableField(columnName = "c_remark", dbType = DbTypeEnum.VARCHAR)
    public String remark;

    /**
     * 经办人
     */
    @DbTableField(columnName = "c_operator", dbType = DbTypeEnum.VARCHAR)
    public String operator;
}
